<template>
  <div>
    <!-- name 一般和params 连用 path 不和param 一块使用 -->
    <router-link :to="{name:'index'}" >首页</router-link> &nbsp;&nbsp;
    <router-link :to="{path:'/login/张三' }" >登录</router-link>
    <router-link :to="{name:'login',params: { username: '水电费' } }" >登录</router-link>
    <router-view></router-view>
  </div>
</template>

<script setup>

</script>

<style  scoped>

</style>